package com.piccolo.wrapper.client.component;

import com.piccolo.wrapper.client.component.Overlay.PEdgeOverlay;

public class PEdge extends PNode
{
	private PEdgeOverlay overlay;
	
	public PEdge(PNode node1, PNode node2)
	{
		this.overlay = PEdgeOverlay.create(node1, node2);
	}

	public PEdge(PNode node1, PNode node2, int lineWidth)
	{
		this.overlay = PEdgeOverlay.create(node1, node2, lineWidth);
	}
	
	public void setLineWidth(int width)
	{
		overlay.setLineWidth(width);
	}
	
	public PEdgeOverlay getOverlay() 
	{
		return overlay;
	}
}
